From e788ab2517ffa918e9a5041dad47d0d7deb79dce Mon Sep 17 00:00:00 2001 From: robertl Date: Wed, 14 Apr 2004 17:09:18 +0000 Subject: [PATCH] Read enough of the navicache xml to generate useful cache pages with the HTML and TEXT outputs. --- gpsbabel/navicache.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gpsbabel/navicache.c b/gpsbabel/navicache.c index 1b9c6173a..7cece8654 100644 --- a/gpsbabel/navicache.c +++ b/gpsbabel/navicache.c @@ -179,7 +179,15 @@ nav_start(void *data, const char *el, const char **attr) } else if (0 == strcmp(ap[0], "cache_size")) { wpt_tmp->gc_data.container = nc_mkcont(ap[1]); - } + } else + if (0 == strcmp(ap[0], "description")) { + wpt_tmp->gc_data.desc_long.is_html = 1; + wpt_tmp->gc_data.desc_long.utfstring = xstrdup(ap[1]); + } else + if (0 == strcmp(ap[0], "comments")) { + wpt_tmp->gc_data.desc_short.is_html = 1; + wpt_tmp->gc_data.desc_short.utfstring = xstrdup(ap[1]); + } } waypt_add(wpt_tmp); } -- 2.30.2